#include <iostream>
#include <vector>
#include <iomanip>
#include <string>
using namespace std;

struct Student {
    string name;
    double chinese;
    double math;
    double english;
    double average;
    string grade;

    // 计算平均分和等级
    void calculateAverage() {
        average = (chinese + math + english) / 3.0;
        grade = (average >= 90) ? "Excellent" : "";
    }
};

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int n;
    cout << "请输入学生人数: ";
    cin >> n;

    vector<Student> students(n);

    // 输入学生信息
    for (int i = 0; i < n; ++i) {
        cout << "请输入第 " << i + 1 << " 位学生的姓名、语文、数学和英语成绩: ";
        cin >> students[i].name >> students[i].chinese >> students[i].math >> students[i].english;
        students[i].calculateAverage();
    }

    // 输出表格头
    cout << fixed << setprecision(2);
    cout << left << setw(10) << "姓名" << setw(10) << "语文"
        << setw(10) << "数学" << setw(10) << "英语"
        << setw(10) << "平均分" << setw(10) << "等级" << endl;

    // 输出学生数据
    for (const auto& student : students) {
        cout << left << setw(10) << student.name
            << setw(10) << student.chinese
            << setw(10) << student.math
            << setw(10) << student.english
            << setw(10) << student.average
            << setw(10) << student.grade << endl;
    }

    return 0;
}